package Excuse;

public class GetScoreAverge {


    public float getAverage(int[] scores) {
        if (scores == null || scores.length == 0) {
            throw new NullPointerException();
        }/////原来程序没有

        float sum = 0.0F;


        int j = scores.length;

        for (int i = 1; i < j; i++) {
            sum += scores[i];
        }


        return sum / j;

    }


    public int get_max(int x, int y, int z) {


        int max;


        if (x >= y) {
            max = x;
        } else {
            max = y;
        }


        if (z >= x) {
            max = z;
        }


        return max;


    }


}
